"use strict";
const request = require('./request')
const istest = true;
const p_server = 'https://tobeself.com/meeting'; //服务地址
//const test_server = 'http://10.2.230.79:8016/meeting';
const test_server = 'http://127.0.0.1:8016/meeting'; //服务地址

const server = istest ? test_server : p_server;
const paper_server = 'https://tobeself.com/Paper'; //服务地址 https://chwangteng.cn/Paper
//const test_server = 'http://10.2.230.79:8016/meeting';
const test_paper_server = 'http://localhost:8018/Paper'; //服务地址

const paperserver = istest ? test_paper_server : paper_server;

const ERROR_CODE = {
  SUCCESS: 0, // 返回成功
  ERR_UNKOWN: -1, // 未知错误
  ERR_SYS_ERROR: -2, // 服务异常
  ERR_COMMON_BAD_PARAM: -11, // 参数错误
  ERR_COMMON_BAD_FORMAT: -12, // 格式错误
  ERR_COMMON_PERMISSION: -13, // 权限错误
  ERR_PAGE_SIZE_ERROR: -1001, // 页码大小超限
  ERR_WECHAT_LOGIN: 10001, // 需要登录
  ERR_MEETING_ROOM_TIMEOVER: 20001, // 时间已过
  ERR_MEETING_ROOM_INUSE: 20002 // 时间冲突
}

// 小程序登录
const api_wechat_login = function ({
  js_code
} = {}) {
  return request({
    url: server + '/api/wechat/login',
    method: 'GET',
    data: {
      js_code: js_code
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 小程序用户信息
const api_wechat_user_info = function ({
  encrypted_data,
  iv
} = {}) {
  return request({
    url: server + '/api/wechat/user/info',
    method: 'GET',
    data: {
      encrypted_data: encrypted_data,
      iv: iv
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

//小程序登录
const api_wxa_login = function (data) {
  return request({
    url: server + '/wxa/user/login',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 小程序用户信息
const api_wxa_userinfo = function (data) {
  return request({
    url: server + '/wxa/user/info',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}


// 配置信息
const api_meeting_config = function ({ } = {}) {
  return request({
    url: server + '/api/meeting/config',
    method: 'GET',
    data: {},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 配置信息
const api_meeting_configsave = function (data) {
  return request({
    url: server + '/api/meeting/config/save',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 创建会议室
const api_meeting_room_create = function ({
  name,
  description,
  create_user_manager
} = {}) {
  return request({
    url: server + '/api/meeting/room/create',
    method: 'POST',
    data: {
      name: name,
      description: description,
      create_user_manager: create_user_manager
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 修改会议室
const api_meeting_room_edit = function ({
  room_id,
  name,
  description,
  create_user_manager
} = {}) {
  return request({
    url: server + '/api/meeting/room/edit',
    method: 'POST',
    data: {
      room_id: room_id,
      name: name,
      description: description,
      create_user_manager: create_user_manager
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 删除会议室
const api_meeting_room_delete = function ({
  room_id
} = {}) {
  return request({
    url: server + '/api/meeting/room/delete',
    method: 'GET',
    data: {
      room_id: room_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 会议室信息
const api_meeting_room_info = function ({
  room_id
} = {}) {
  return request({
    url: server + '/api/meeting/room/info',
    method: 'GET',
    data: {
      room_id: room_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 关注会议室
const api_meeting_room_follow = function ({
  room_id
} = {}) {
  return request({
    url: server + '/api/meeting/room/follow',
    method: 'GET',
    data: {
      room_id: room_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 取消关注会议室
const api_meeting_room_un_follow = function ({
  room_id
} = {}) {
  return request({
    url: server + '/api/meeting/room/un/follow',
    method: 'GET',
    data: {
      room_id: room_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 已关注会议室列表
const api_meeting_follow_rooms = function ({ } = {}) {
  return request({
    url: server + '/api/meeting/follow/rooms',
    method: 'GET',
    data: {},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 创建会议室列表
const api_meeting_create_rooms = function ({ } = {}) {
  return request({
    url: server + '/api/meeting/create/rooms',
    method: 'GET',
    data: {},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 会议室预约列表
const api_meeting_room_meetings = function ({
  room_ids,
  date,
  week
} = {}) {
  return request({
    url: server + '/api/meeting/room/meetings',
    method: 'GET',
    data: {
      room_ids: room_ids,
      date: date,
      week: week
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 我参与的会议列表
const api_meeting_my_meetings = function ({
  date,
  week
} = {}) {
  return request({
    url: server + '/api/meeting/my/meetings',
    method: 'GET',
    data: {
      date: date,
      week: week
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 预约会议
const api_meeting_reserve = function ({
  room_id,
  name,
  description,
  date,
  start_time,
  end_time
} = {}) {
  return request({
    url: server + '/api/meeting/reserve',
    method: 'POST',
    data: {
      room_id: room_id,
      name: name,
      description: description,
      date: date,
      start_time: start_time,
      end_time: end_time
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 会议详情
const api_meeting_info = function ({
  meeting_id
} = {}) {
  return request({
    url: server + '/api/meeting/info',
    method: 'GET',
    data: {
      meeting_id: meeting_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 会议修改
const api_meeting_edit = function ({
  meeting_id,
  name,
  description,
  weight
} = {}) {
  return request({
    url: server + '/api/meeting/edit',
    method: 'POST',
    data: {
      meeting_id: meeting_id,
      name: name,
      description: description,
      weight: weight
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 取消会议
const api_meeting_cancel = function ({
  meeting_id
} = {}) {
  return request({
    url: server + '/api/meeting/cancel',
    method: 'GET',
    data: {
      meeting_id: meeting_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 参加会议
const api_meeting_join = function ({
  meeting_id
} = {}) {
  return request({
    url: server + '/api/meeting/join',
    method: 'GET',
    data: {
      meeting_id: meeting_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 取消参加会议
const api_meeting_leave = function ({
  meeting_id
} = {}) {
  return request({
    url: server + '/api/meeting/leave',
    method: 'GET',
    data: {
      meeting_id: meeting_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户角色信息，权限
const api_user_info = function ({ } = {}) {
  return request({
    url: server + '/api/user/info',
    method: 'GET',
    data: {},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户课程统计信息，权限
const api_user_classinfo = function (data) {
  return request({
    url: server + '/api/user/classinfo',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户角色信息，权限
const api_user_approve = function ({
  approvetext
} = {}) {
  return request({
    url: server + '/api/user/approve',
    method: 'GET',
    data: {
      approvetext: approvetext
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户列表 type：rela、norela
const api_user_list = function ({
  type,
  searchkey
} = {}) {
  return request({
    url: server + '/api/user/list',
    method: 'GET',
    data: {
      type: type,
      searchkey: searchkey
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户列表 type：rela、norela
const api_user_detail = function ({
  user_id
} = {}) {
  return request({
    url: server + '/api/user/detail',
    method: 'GET',
    data: {
      user_id: user_id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户查询 inputVal 关键字
const api_user_find = function ({
  inputVal,
  surveyid = -1
} = {}) { //, paper_answer=false
  return request({
    url: server + '/api/user/find',
    method: 'GET',
    data: {
      input: inputVal,
      surveyid: surveyid
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 用户关联保存
const api_user_saverela = function (data) {
  return request({
    url: server + '/api/user/saverela',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_wechatuser_delete = function (data) {
  return request({
    url: server + '/api/wechatuser/delete',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_user_deleterela = function (data) {
  return request({
    url: server + '/api/user/deleterela',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 用户信息获取
const api_user_edit_info = function (data) {
  return request({
    url: server + '/api/user/edit/info',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 用户信息获取
const api_user_edit_save = function (data) {
  return request({
    url: server + '/api/user/edit/save',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_meeting_upload_cfg = function (data) {
  return request({
    url: server + '/api/meeting/upload/cfg',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_meeting_upload_classdeal = function (data) {
  return request({
    url: server + '/api/meeting/upload/classdeal',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_meeting_classstatus = function (data) {
  return request({
    url: server + '/api/meeting/classstatus',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_meeting_list = function (data) {
  return request({
    url: server + '/api/meeting/list',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_user_adviselist = function (data) {
  return request({
    url: server + '/api/user/advise/list',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_user_saveadvise = function (data) {
  return request({
    url: server + '/api/user/advise/save',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_user_intoclasslist = function (data) {
  return request({
    url: server + '/api/user/intoclass/list',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_user_saveintoclass = function (data) {
  return request({
    url: server + '/api/user/intoclass/save',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_meeting_update = function (data) {
  return request({
    url: server + '/api/meeting/meeting_update',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_meeting_enum = function (data) {
  return request({
    url: server + '/api/meeting/enum',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_usersurveycount = function (data) {
  return request({
    url: server + '/api/paper/paper_usersurveycount',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_quessize = function (data) {
  return request({
    url: server + '/api/paper/paper_quessize',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_rela = function (data) {
  return request({
    url: server + '/api/paper/paper_rela',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_delete = function (data) {
  return request({
    url: server + '/api/paper/survey_delete',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_getdoingsurvey = function (data) {
  return request({
    url: server + '/api/paper/getdoingsurvey',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_paper_rightsave = function (data) {
  return request({
    url: server + '/api/paper/rightsave',
    method: 'POST',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_paper_rightinfo = function (data) {
  return request({
    url: server + '/api/paper/rightinfo',
    method: 'POST',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_chartdetail = function (data) {
  return request({
    url: server + '/api/paper/paper_chartdetail',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_paper_saveanswerrecore = function (data) {
  return request({
    url: server + '/api/paper/saveanswerrecore',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// data:firstques,surveyid
const api_paper_showsurvey = function (data) {
  // return request({
  //   url: paperserver + '/showSurvey.action',
  //   method: 'POST',
  //   data: data,
  //   header: { 'Content-Type': 'application/x-www-form-urlencoded' }
  // })
  return new Promise((resolve, reject) => {
    wx.request({
      url: paperserver + '/showSurvey.action',
      data: data,
      method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
      // header: {}, // 设置请求的 header
      success: function (res) {
        // success
        resolve(res)
      },
      fail: function () {
        // fail
        reject()
      },
      complete: function () {
        // complete
      }
    })
  })

}

const api_meeting_upload = function (data, param, successfun) {
  var that = this
  for (let i = 0; i < data.length; i++) {
    console.log("data长度=" + data.length)
    console.log(data)
    console.log(param)
    wx.uploadFile({
      url: server + "/api/meeting/upload", //写映射你Java接口的路径
      filePath: data[i] + "",
      name: 'file',
      formData: param,
      success: function (res) {
        successfun(res)
      }
    })
  }
}

const api_meeting_download = function (param, name, successfun) {

  var _urlapp = "?";
  for (var key in param) {
    _urlapp += key + "=" + param[key] + "&";
  }

  let _that = this;
  wx.downloadFile({
    url: server + "/y/export" + _urlapp, //写映射你Java接口的路径
    success: function (res) {

      var fileName = name + '课时表.xlsx';
      const manage = wx.getFileSystemManager();
      if (res.statusCode === 200) {
        manage.saveFile({
          tempFilePath: res.tempFilePath,
          filePath: wx.env.USER_DATA_PATH + "/" + fileName,
          success: function (res) { }
        });
        // 打开文档
        wx.openDocument({
          filePath: wx.env.USER_DATA_PATH + "/" + fileName,
          success: function (res) {
            console.log('打开文档成功')
          },
          fail: function () {
            console.log('打开失败');
          }
        })
      }

    }
  })
}

const api_paper_downloaddetail = function (param, name, successfun) {

  var _urlapp = "?";
  for (var key in param) {
    _urlapp += key + "=" + param[key] + "&";
  }

  let _that = this;
  wx.downloadFile({
    url: server + "/api/paper/paper_exportdetail" + _urlapp, //写映射你Java接口的路径
    success: function (res) {

      var fileName = name + '答题明细.xlsx';
      const manage = wx.getFileSystemManager();
      if (res.statusCode === 200) {
        manage.saveFile({
          tempFilePath: res.tempFilePath,
          filePath: wx.env.USER_DATA_PATH + "/" + fileName,
          success: function (res) { }
        });
        // 打开文档
        wx.openDocument({
          filePath: wx.env.USER_DATA_PATH + "/" + fileName,
          success: function (res) {
            console.log('打开文档成功')
          },
          fail: function () {
            console.log('打开失败');
          }
        })
      }

    }
  })
}

const api_paper_upload = function (data, param, successfun) {
  var that = this
  for (let i = 0; i < data.length; i++) {
    console.log("data长度=" + data.length)
    console.log(data)
    console.log(param)
    wx.uploadFile({
      url: server + "/api/paper/upload", //写映射你Java接口的路径
      filePath: data[i] + "",
      name: 'file',
      formData: param,
      success: function (res) {
        successfun(res)
      }
    })
  }
}

const api_showMsg = function(res){
  var msg = "";
  if(typeof res == "string"){
    msg = res;
  }
  if(typeof res == "object"){
    if(res.data && res.data.message){
      msg = res.data;
    }else if(res.message){
      msg = res.message;
    }
  }
  wx.showToast({
    title: msg
  })

}

const copy = function (text) {
  wx.setClipboardData({
    data: text,
    success: function (res) {
      wx.getClipboardData({
        success: function (res) {
          wx.showToast({
            title: '复制成功'
          })
        }
      })
    }
  })
}


const api_toy_upload = function (data, param, successfun) {
  var that = this
  for (let i = 0; i < data.length; i++) {
    console.log("data长度=" + data.length)
    console.log(data)
    console.log(param)
    wx.uploadFile({
      url: server + "/api/toy/upload", //写映射你Java接口的路径
      filePath: data[i] + "",
      name: 'file',
      formData: param,
      success: function (res) {
        successfun(res)
      }
    })
  }
}

const api_scan = function (callback) {
  // 允许从相机和相册扫码
  wx.scanCode({
    onlyFromCamera: true,
    success(res) {
      //扫码成功执行
      console.log(res)
    },
    fail(res) {
      //扫码失败执行
      console.log(res)
    },
    complete(res) {
      //扫码结束执行
      console.log(res)
      callback(res);
    }

  })
}
// 玩具列表 type：rela、norela
const api_toy_list = function ({ type, searchkey } = {}) {
  return request({
    url: server + '/api/toy/toy_list',
    method: 'GET',
    data: {
      type: type,
      searchkey: searchkey
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_toy_scan_get = function (data) {
  return request({
    url: server + '/api/toy/scan_get',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

const api_toy_scan_return = function (data) {
  return request({
    url: server + '/api/toy/scan_return',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

// 玩具列表 type：rela、norela
const api_toy_managerlist = function ({
  type,
  searchkey
} = {}) {
  return request({
    url: server + '/api/toy/toy_managerlist',
    method: 'GET',
    data: {
      type: type,
      searchkey: searchkey
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 玩具编辑
const api_toy_edit_info = function ({
  id
} = {}) {
  return request({
    url: server + '/api/toy/toy_info',
    method: 'GET',
    data: {
      id: id
    },
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_toy_edit_save = function (data) {
  return request({
    url: server + '/api/toy/toy_save',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_toy_saveout = function (data) {
  return request({
    url: server + '/api/toy/toy_saveout',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_toy_outrecord = function (data) {
  return request({
    url: server + '/api/toy/toy_outrecord',
    method: 'GET',
    data: data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_enum_list = function ({key}={}) {
  return request({
    url: server + '/api/enum/list',
    method: 'GET',
    data: {key:key},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
const api_enum_listarr = function (key) {
  return request({
    url: server + '/api/enum/listarr',
    method: 'GET',
    data: {key:key},
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

module.exports = {
  ERROR_CODE: ERROR_CODE,
  copy: copy,
  serverapp: server, //目前这个只有app。js在用
  server: paperserver, //这个server 只有paper 才会用
  api_showMsg:api_showMsg,
  api_enum_list:api_enum_list,
  api_enum_listarr:api_enum_listarr,
  api_wechat_login: api_wechat_login,
  api_wechat_user_info: api_wechat_user_info,
  api_wechatuser_delete: api_wechatuser_delete,
  api_meeting_config: api_meeting_config,
  api_meeting_room_create: api_meeting_room_create,
  api_meeting_room_edit: api_meeting_room_edit,
  api_meeting_room_delete: api_meeting_room_delete,
  api_meeting_room_info: api_meeting_room_info,
  api_meeting_room_follow: api_meeting_room_follow,
  api_meeting_room_un_follow: api_meeting_room_un_follow,
  api_meeting_follow_rooms: api_meeting_follow_rooms,
  api_meeting_create_rooms: api_meeting_create_rooms,
  api_meeting_room_meetings: api_meeting_room_meetings,
  api_meeting_my_meetings: api_meeting_my_meetings,
  api_meeting_reserve: api_meeting_reserve,
  api_meeting_info: api_meeting_info,
  api_meeting_edit: api_meeting_edit,
  api_meeting_cancel: api_meeting_cancel,
  api_meeting_join: api_meeting_join,
  api_meeting_leave: api_meeting_leave,
  api_meeting_list: api_meeting_list,
  api_user_approve: api_user_approve,
  api_user_list: api_user_list,
  api_user_detail: api_user_detail,
  api_user_find: api_user_find,
  api_user_saverela: api_user_saverela,
  api_user_edit_save: api_user_edit_save,
  api_user_edit_info: api_user_edit_info,
  api_user_info: api_user_info,
  api_user_saveadvise: api_user_saveadvise,
  api_user_adviselist: api_user_adviselist,
  api_user_saveintoclass: api_user_saveintoclass,
  api_user_intoclasslist: api_user_intoclasslist,
  api_user_classinfo: api_user_classinfo,
  api_meeting_classstatus: api_meeting_classstatus,
  api_meeting_update: api_meeting_update,
  api_meeting_upload_cfg: api_meeting_upload_cfg,
  api_meeting_upload_classdeal: api_meeting_upload_classdeal,
  api_meeting_configsave: api_meeting_configsave,
  api_meeting_enum: api_meeting_enum,
  api_meeting_upload: api_meeting_upload,
  api_meeting_download: api_meeting_download,
  api_toy_upload: api_toy_upload,
  api_toy_list: api_toy_list,
  api_toy_scan_get: api_toy_scan_get,
  api_toy_scan_return: api_toy_scan_return,
  api_toy_managerlist: api_toy_managerlist,
  api_toy_edit_info:api_toy_edit_info,
  api_toy_edit_save:api_toy_edit_save,
  api_toy_saveout:api_toy_saveout,
  api_toy_outrecord:api_toy_outrecord,
  api_scan: api_scan,
  api_wxa_userinfo: api_wxa_userinfo,
  api_wxa_login: api_wxa_login,
  api_paper_saveanswerrecore: api_paper_saveanswerrecore,
  api_paper_rightsave: api_paper_rightsave,
  api_paper_rightinfo: api_paper_rightinfo,
  api_paper_downloaddetail: api_paper_downloaddetail,
  api_paper_showsurvey: api_paper_showsurvey,
  api_paper_upload: api_paper_upload,
  api_paper_delete: api_paper_delete,
  api_paper_rela: api_paper_rela,
  api_paper_usersurveycount: api_paper_usersurveycount,
  api_paper_quessize: api_paper_quessize,
  api_paper_getdoingsurvey: api_paper_getdoingsurvey,
  api_paper_chartdetail: api_paper_chartdetail
}